package constants;

import java.util.HashMap;
import java.util.Map;

public class CBBagConstants {

	public static final byte DATA_TYPE_BOOLEAN	= 11;
	public static final byte DATA_TYPE_BYTE		= 12;
	public static final byte DATA_TYPE_CHAR	  	= 13;
	public static final byte DATA_TYPE_SHORT	= 14;
	public static final byte DATA_TYPE_INT		= 15;
	public static final byte DATA_TYPE_LONG	  	= 16;
	public static final byte DATA_TYPE_FLOAT	= 17;
	public static final byte DATA_TYPE_DOUBLE	= 18;
	public static final byte DATA_TYPE_DATE	  	= 21;
	public static final byte DATA_TYPE_TIME	  	= 22;
	public static final byte DATA_TYPE_BAG 	  	= 23;
	public static final byte DATA_TYPE_CURRENCY	= 24;
	public static final byte DATA_TYPE_STRING	= 25;

	public static final Map<Byte, String> TYPE_MAPPINGS = new HashMap<Byte, String>(){/**
		 * 
		 */
		private static final long serialVersionUID = 6439279424714945979L;

	{
			put(DATA_TYPE_BOOLEAN , "BOOLEAN");
			put(DATA_TYPE_BYTE , "INT");
			put(DATA_TYPE_CHAR , "STRING");
			put(DATA_TYPE_SHORT , "INT");
			put(DATA_TYPE_INT , "INT");
			put(DATA_TYPE_LONG , "LONG");
			put(DATA_TYPE_FLOAT , "LONG");
			put(DATA_TYPE_DOUBLE , "LONG");
			put(DATA_TYPE_DATE , "CBDATE");
			put(DATA_TYPE_TIME , "STRING");
			put(DATA_TYPE_BAG , "STRING");
			put(DATA_TYPE_CURRENCY , "CBCURRENCY");
			put(DATA_TYPE_STRING , "STRING");
	}};
	
	public final static byte DATA_TYPE_CBACCOUNTID=26;	
	public final static byte DATA_TYPE_CBID=28;	
	
	public final static byte DATA_TYPE_DOMAINMODEL=27;

	public final static byte DATA_TYPE_CBSET=29;

	public final static byte DATA_TYPE_NOT_REGISTERED=-1;

	public final static int FIRST_IDX_NULL = -2;
	public final static int SECOND_IDX_NULL = -2;
	public final static int FIRST_IDX_DIM = -1;
	public final static int SECOND_IDX_DIM = -1;
	public final static int FIRST_IDX_SIZE = -1;
	public final static int SECOND_IDX_SIZE = 0;
	
	public final static int BAG_TABLE_SIZE = 4;
	public final static int BAG_COLUMN_SIZE = 16;
	public final static int BAG_ONEDIM_SIZE = 32;
	public final static int BAG_ROW_SIZE = 64;
}
